<%@page pageEncoding="UTF-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<c:import url="/layout.jsp">
	<c:param name="title" value="Blog(Slim3)"/>
	<c:param name="content">
		<script type="text/javascript" src="this.js"></script>
		<ul>
			<c:forEach var="e" items="${f:errors()}">
				<li>${f:h(e)}</li>
			</c:forEach>
		</ul>
		<form action="${f:url('update')}" method="post">
			<input type="hidden" ${f:hidden("key")}/>
			<input type="hidden" ${f:hidden("version")}/>
			Title<br />
			<input type="text" ${f:text("title")} class="${f:errorClass('title', 'err')}"/><br />
			Content<br />
			<textarea name="content" class="${f:errorClass('content', 'err')}">${f:h(content)}</textarea><br />
			<input type="submit" value="Update"/>
		</form>
	</c:param>
</c:import>
